To determine if the Thread Manager is available and which features are supported, call the Gestalt function with the selector gestaltThreadMgrAttr . The Gestalt function returns information by setting or clearing bits in the response parameter. The following constants define the bits currently used.
enum { /* Gestalt selectors */
#define gestaltThreadMgrAttr 'thds' /* Thread Manager attributes */
gestaltThreadMgrPresent = 0,
gestaltSpecificMatchSupport = 1,
gestaltThreadsLibraryPresent = 2
};